{% extends '::backend.html.twig' %}
{% block contenido %}
{% include 'BackendBundle:Default:flashAlerts.html.twig'%}
<legend>Editar Oficina</legend>
<form class="form-horizontal"  action="{{ path('oficina_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(form) }}>
    <fieldset>

        <div class="control-group">
        
         <label class="control-label required">Nombre</label>
            <div class="controls">
                    {{ form_widget(form.nombre) }}
                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-success" type="submit"><i class="icon-ok icon-black"></i> Guardar</button>
                <a class="btn btn-danger" href="{{ path('oficina', { 'id': entity.id }) }}"><i class="icon-remove icon-black"></i>
                    Cancelar
                </a>
            </div>
        </fieldset>
    </form> 
{% endblock %}
